<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
    <channel>
        <title>{{ 'rss.title'|trans }}</title>
        <description>{{ 'rss.description'|trans }}</description>
        <pubDate>{{ 'now'|date('r', timezone='GMT') }}</pubDate>
        {#<lastBuildDate>{{ (postList|last).publishedAt|default('now')|date('r', timezone='GMT') }}</lastBuildDate>#}
        <link>{{ url('post_list') }}</link>
        <language>{{ app.request.locale }}</language>

        {% for post in postList %}
            <item>
                <title>{{ post.title }}</title>
                <description>{{ post.summary }}</description>
                <link>{{ url('post', {'slug': post.slug}) }}</link>
                <guid>{{ url('post', {'slug': post.slug}) }}</guid>
                <pubDate>{{ post.publishedAt|date(format='r', timezone='GMT') }}</pubDate>
                <author>{{ post.authorEmail }}</author>
                {% for tag in post.tagList %}
                    <category>{{ tag }}</category>
                {% endfor %}
            </item>
        {% endfor %}
    </channel>
</rss>
